#include <iostream>
#include <cmath>

int main()
{
	int p;
	double c;
	std::cin >> p >> c;
	int ans = p * c / 10.0;
	ans = round(ans / 10.0) * 10;
	std::cout << ans << '\n';
}

